<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>使用纯vue的示例</title>
  <script src="vue.js"></script>
  <script src="vuex.js"></script>
</head>
<body>
<div id="app">
  <input type="button" value="单击增加1" @click="increment()" >
   {{ count }}
</div> 
<script>
  var vm=new Vue({ 
      el:"#app",
      data () {
          return {
            count: 1
          }
        },		
      methods: {
        increment() {
          this.count++
          console.log(this.count)
        }
      }
   })
</script>
</body>
</html>